package Mangos::DB::Characters::PetAura;

use strict;

use base qw(Mangos::DB::Characters);

__PACKAGE__->meta->setup
(
    table   => 'pet_aura',

    columns => 
    [
        guid          => { type => 'integer', not_null => 1 },
        caster_guid   => { type => 'bigint', default => '0', not_null => 1 },
        spell         => { type => 'integer', not_null => 1 },
        effect_index  => { type => 'integer', not_null => 1 },
        stackcount    => { type => 'integer', default => 1, not_null => 1 },
        amount        => { type => 'integer', default => '0', not_null => 1 },
        maxduration   => { type => 'integer', default => '0', not_null => 1 },
        remaintime    => { type => 'integer', default => '0', not_null => 1 },
        remaincharges => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'guid', 'spell', 'effect_index' ],
);

1;

package Mangos::DB::Characters::PetAura::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Characters::PetAura' }

__PACKAGE__->make_manager_methods('pet_aura');

1;
